from Board import Board
from BoardCell import BoardCell
from BoardCSP import BoardCSP
from CellCSPVariable import CellCSPVariable
from csp import *

def main():
    b = Board(5,5)
    b[4] = [BoardCell(-2),BoardCell(-2),BoardCell(-2),BoardCell(-2),BoardCell(-2)]
    b[3] = [BoardCell(-2),BoardCell(2),BoardCell(2),BoardCell(1),BoardCell(1)]
    b[2] = [BoardCell(-2),BoardCell(1),BoardCell(0),BoardCell(0),BoardCell(0)]
    b[1] = [BoardCell(1),BoardCell(1),BoardCell(0),BoardCell(0),BoardCell(0)]
    b[0] = [BoardCell(0),BoardCell(0),BoardCell(0),BoardCell(0),BoardCell(0)]
    b.printRep()
    c = BoardCSP(b)
    print backtracking_search(c)

    

main()
